package bin;

import java.util.*;
import java.io.*;

public class PropertiesTest {
	private Properties props;
	public PropertiesTest(String paramFile, String driver, 
			String url, String user, String pass) throws Exception {
		props = new Properties();
		props.setProperty("driver", driver);
		props.setProperty("url", url);
		props.setProperty("user", user);
		props.setProperty("pass", pass);
		props.store(new FileOutputStream(paramFile), null);
	}
	public static void main(String[] args) {
		try {
			String test = "test";
			PropertiesTest props = new PropertiesTest("./a.ini", test, "test", "test", "test");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}